/**
 * @file      serverdata.h
 * @copyright Copyright (c) 2019, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2019-06-19 15:02:37
 *
 * @note
 *  serverdata.h defines
 */
#ifndef __SERVERDATA_H__
#define __SERVERDATA_H__
#include "jsondata.h"

class ServerData : public JsonData
{
public:
    ServerData() {};
    ServerData(const QJsonObject &obj) : JsonData(obj) {}

public:
    void               setHost(const QString &host) { setValue("host", host); }
    QString            getHost() const              { return getValue("host").toString(); };

    void               setPort(int port)            { setValue("port", port); }
    int                getPort() const              { return getValue("port").toInt(); };

    /* TODO:  <20-06-19, yourname> */
    /* void             setXXX(); */
    /* void             getXXX(); */
};

#endif
